
public class Test1 {
    public static void main(String[] args) {
        int year = 2024;
       if(year%100==0) {
           if (year % 400 == 0) {
               System.out.println(year + "是闰年");
           }
       }else{
           if(year%4==0){
               System.out.println(year+"是闰年");
           }
       }
    }
}
